package com.lecture.java8.http;

import lombok.Data;

import java.util.List;

@Data
public class ApiResponse {
    private Data data;
    private int error_code;
    private String error_description;

    // Getters and setters

    @lombok.Data
    public static class Data {
        private int count;
        private List<Item> list;

        // Getters and setters

        @lombok.Data
        public static class Item {
            /**
             * 股票代码
             */
            private String symbol;
            private Double net_profit_cagr;
            private Double north_net_inflow;
            private Double ps;
            private int type;
            private Double percent;
            private boolean has_follow;
            private Double tick_size;
            private Double pb_ttm;
            private long float_shares;

            /**
             * 当前价
             */
            private Double current;
            private Double amplitude;
            private Double pcf;
            private Double current_year_percent;
            /**
             * 市值
             */
            private Double float_market_capital;
            private Double north_net_inflow_time;
            private Double market_capital;
            private Double dividend_yield;
            private int lot_size;
            private Double roe_ttm;
            private Double total_percent;
            private Double percent5m;
            private Double income_cagr;
            private Double amount;

            /**
             * 涨跌
             */
            private Double chg;
            private long issue_date_ts;
            private Double eps;
            private Double main_net_inflows;
            private long volume;
            private Double volume_ratio;
            private Double pb;
            private int followers;
            private Double turnover_rate;
            private Double mapping_quote_current;
            private Double first_percent;

            /**
             * 股票名称
             */
            private String name;
            private Double pe_ttm;
            private String dual_counter_mapping_symbol;
            private long total_shares;
            private int limitup_days;

            // Getters and setters
        }
    }
}

